mirror of
https://github.com/miaowware/qrm2.git
synced 2025-05-31 21:52:27 -04: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]
|
## [Unreleased]
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed ditto marks (") appearing in the ae7q call command.
|
- 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
|
## [v2.1.0] - 2020-01-04
|
||||||
|
@ -11,6 +11,8 @@ KN8U: active, restricted
|
|||||||
AB2EE: expired, restricted
|
AB2EE: expired, restricted
|
||||||
KE8FGB: assigned once, no restrictions
|
KE8FGB: assigned once, no restrictions
|
||||||
NA2AAA: unassigned, no records
|
NA2AAA: unassigned, no records
|
||||||
|
KC4USA: reserved but has call history
|
||||||
|
WF4EMA: "
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import discord.ext.commands as commands
|
import discord.ext.commands as commands
|
||||||
@ -62,7 +64,9 @@ class AE7QCog(commands.Cog):
|
|||||||
desc = desc.replace(callsign, f'`{callsign}`')
|
desc = desc.replace(callsign, f'`{callsign}`')
|
||||||
rows = None
|
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.title = f"AE7Q History for {callsign}"
|
||||||
embed.colour = cmn.colours.bad
|
embed.colour = cmn.colours.bad
|
||||||
embed.url = f"{base_url}{callsign}"
|
embed.url = f"{base_url}{callsign}"
|
||||||
@ -74,6 +78,9 @@ class AE7QCog(commands.Cog):
|
|||||||
table_contents = [] # store your table here
|
table_contents = [] # store your table here
|
||||||
for tr in rows:
|
for tr in rows:
|
||||||
if rows.index(tr) == 0:
|
if rows.index(tr) == 0:
|
||||||
|
# first_header = ''.join(tr.find_all("th")[0].strings)
|
||||||
|
# if first_header == 'Entity Name':
|
||||||
|
# print('yooooo')
|
||||||
continue
|
continue
|
||||||
row_cells = []
|
row_cells = []
|
||||||
for td in tr.find_all('td'):
|
for td in tr.find_all('td'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user