1
0
Fork 0
mirror of synced 2024-06-28 02:50:27 +12:00

Added remaining credits to log file

This commit is contained in:
Ali Parlakci 2018-07-26 11:08:37 +03:00
parent e953456ead
commit 457b8cd21c

View file

@ -486,15 +486,19 @@ def downloadPost(SUBMISSION):
+ " Minutes " \
+ str(int(IMGUR_RESET_TIME%60)) \
+ " Seconds")
if credit['ClientRemaining'] < 25 or credit['UserRemaining'] < 25:
print(
"==> Client: {} - User: {} - Reset {}".format(
credit['ClientRemaining'],
credit['UserRemaining'],
USER_RESET
),end=""
)
printCredit = {"noPrint":False}
else:
printCredit = {"noPrint":True}
print(
"==> Client: {} - User: {} - Reset {}\n".format(
credit['ClientRemaining'],
credit['UserRemaining'],
USER_RESET
),end="",**printCredit
)
if not (credit['UserRemaining'] == 0 or \
credit['ClientRemaining'] == 0):