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

@@ -488,12 +488,16 @@ def downloadPost(SUBMISSION):
+ " Seconds") + " Seconds")
if credit['ClientRemaining'] < 25 or credit['UserRemaining'] < 25: if credit['ClientRemaining'] < 25 or credit['UserRemaining'] < 25:
printCredit = {"noPrint":False}
else:
printCredit = {"noPrint":True}
print( print(
"==> Client: {} - User: {} - Reset {}".format( "==> Client: {} - User: {} - Reset {}\n".format(
credit['ClientRemaining'], credit['ClientRemaining'],
credit['UserRemaining'], credit['UserRemaining'],
USER_RESET USER_RESET
),end="" ),end="",**printCredit
) )
if not (credit['UserRemaining'] == 0 or \ if not (credit['UserRemaining'] == 0 or \