mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-30 15:31:11 +00:00
epoch to local time
This commit is contained in:
parent
a7b63f569f
commit
63a7a578a4
4
twoot.py
4
twoot.py
|
@ -204,8 +204,8 @@ def login(instance, account, password):
|
||||||
# Check ratelimit status
|
# Check ratelimit status
|
||||||
logging.info('Ratelimit allowed requests: ' + Mastodon.ratelimit_limit)
|
logging.info('Ratelimit allowed requests: ' + Mastodon.ratelimit_limit)
|
||||||
logging.info('Ratelimit remaining requests: ' + Mastodon.ratelimit_remaining)
|
logging.info('Ratelimit remaining requests: ' + Mastodon.ratelimit_remaining)
|
||||||
logging.info('Ratelimit reset time: ' + Mastodon.ratelimit_reset)
|
logging.info('Ratelimit reset time: ' + time.localtime(Mastodon.ratelimit_reset))
|
||||||
logging.info('Ratelimit last call: ' + Mastodon.ratelimit_lastcall)
|
logging.info('Ratelimit last call: ' + time.localtime(Mastodon.ratelimit_lastcall))
|
||||||
|
|
||||||
# Create Mastodon application if it does not exist yet
|
# Create Mastodon application if it does not exist yet
|
||||||
if not os.path.isfile(instance + '.secret'):
|
if not os.path.isfile(instance + '.secret'):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user