mirror of
https://github.com/miaowware/qrm2.git
synced 2024-11-26 17:58:40 -05:00
parent
9552a7f6d4
commit
60f8e80b82
@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
## [Unreleased]
|
||||
### Fixed
|
||||
- Fixed ditto marks (") appearing in the ae7q call command.
|
||||
- Fixed issue where incorrect table was parsed in ae7q call command.
|
||||
|
||||
|
||||
## [v2.1.0] - 2020-01-04
|
||||
|
@ -11,6 +11,8 @@ KN8U: active, restricted
|
||||
AB2EE: expired, restricted
|
||||
KE8FGB: assigned once, no restrictions
|
||||
NA2AAA: unassigned, no records
|
||||
KC4USA: reserved but has call history
|
||||
WF4EMA: "
|
||||
"""
|
||||
|
||||
import discord.ext.commands as commands
|
||||
@ -62,7 +64,9 @@ class AE7QCog(commands.Cog):
|
||||
desc = desc.replace(callsign, f'`{callsign}`')
|
||||
rows = None
|
||||
|
||||
if rows is None:
|
||||
first_header = ''.join(rows[0].find_all("th")[0].strings)
|
||||
|
||||
if rows is None or first_header != 'Entity Name':
|
||||
embed.title = f"AE7Q History for {callsign}"
|
||||
embed.colour = cmn.colours.bad
|
||||
embed.url = f"{base_url}{callsign}"
|
||||
@ -74,6 +78,9 @@ class AE7QCog(commands.Cog):
|
||||
table_contents = [] # store your table here
|
||||
for tr in rows:
|
||||
if rows.index(tr) == 0:
|
||||
# first_header = ''.join(tr.find_all("th")[0].strings)
|
||||
# if first_header == 'Entity Name':
|
||||
# print('yooooo')
|
||||
continue
|
||||
row_cells = []
|
||||
for td in tr.find_all('td'):
|
||||
|
Loading…
Reference in New Issue
Block a user