mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
:o
This commit is contained in:
parent
a9b26008d3
commit
6e813e20c9
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ def cmd_balurage(bot: telegram.Bot, update: telegram.Update, session: db.Session
|
|||
def parse_diario(session: db.Session, text: str):
|
||||
match = re.match(r'"?(.*)"? (?:—|-{1,2}) ?@?([A-Za-z0-9_]+)$', text)
|
||||
if match is None:
|
||||
return None
|
||||
return None, text
|
||||
text_string = match.group(1)
|
||||
author_string = match.group(2).lower()
|
||||
royal = session.query(db.Royal).filter(db.func.lower(db.Royal.username) == author_string).first()
|
||||
|
|
Loading…
Reference in a new issue