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 " \ + " Minutes " \
+ str(int(IMGUR_RESET_TIME%60)) \ + str(int(IMGUR_RESET_TIME%60)) \
+ " Seconds") + " Seconds")
if credit['ClientRemaining'] < 25 or credit['UserRemaining'] < 25: if credit['ClientRemaining'] < 25 or credit['UserRemaining'] < 25:
print( printCredit = {"noPrint":False}
"==> Client: {} - User: {} - Reset {}".format( else:
credit['ClientRemaining'], printCredit = {"noPrint":True}
credit['UserRemaining'],
USER_RESET print(
),end="" "==> Client: {} - User: {} - Reset {}\n".format(
) credit['ClientRemaining'],
credit['UserRemaining'],
USER_RESET
),end="",**printCredit
)
if not (credit['UserRemaining'] == 0 or \ if not (credit['UserRemaining'] == 0 or \
credit['ClientRemaining'] == 0): credit['ClientRemaining'] == 0):