mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2024-12-24 20:02:31 -06:00
Merge branch 'beeper:sms-registration' into sms-registration
This commit is contained in:
commit
de4a05cafa
1 changed files with 2 additions and 2 deletions
4
demo.py
4
demo.py
|
@ -88,7 +88,7 @@ async def main(args: argparse.Namespace):
|
||||||
|
|
||||||
expiration = None
|
expiration = None
|
||||||
# Format time as HH:MM:SS PM/AM EST/EDT (X minutes from now)
|
# Format time as HH:MM:SS PM/AM EST/EDT (X minutes from now)
|
||||||
expire_msg = lambda expiration: f"Number registration is valid until {str(expiration.astimezone().strftime('%I:%M:%S %p %Z'))} ({str(int((expiration - datetime.datetime.now(datetime.timezone.utc)).total_seconds()/60))} minutes from now)"
|
expire_msg = lambda expiration: f"Number registration is valid until {str(expiration.astimezone().strftime('%x %I:%M:%S %p %Z'))} ({str(int((expiration - datetime.datetime.now(datetime.timezone.utc)).total_seconds()/60))} minutes from now)"
|
||||||
email_user = None
|
email_user = None
|
||||||
email_addr = None # For HACK below
|
email_addr = None # For HACK below
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@ async def main(args: argparse.Namespace):
|
||||||
await trio.sleep(reregister_delta)
|
await trio.sleep(reregister_delta)
|
||||||
|
|
||||||
logging.info("Reregistering...")
|
logging.info("Reregistering...")
|
||||||
register(conn, users)
|
expiration = await reregister(conn, users)
|
||||||
|
|
||||||
logging.info("Reregistered!")
|
logging.info("Reregistered!")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue