fixed log counter
This commit is contained in:
parent
81d23e27a0
commit
d75e24df42
@ -24,13 +24,14 @@ def displayLogs(self):
|
||||
printLogs(logs)
|
||||
|
||||
def printLogs(logs):
|
||||
x = 0
|
||||
for log in logs:
|
||||
print(f"------------------{log[0]}---------------------")
|
||||
print(f"------------------{log[x]}---------------------")
|
||||
print(f"Log Date:")
|
||||
print(f"{time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(float(log[2])))}")
|
||||
print(f"Log Message:")
|
||||
print(f"{log[3]}")
|
||||
|
||||
x += 1
|
||||
print(f"------------------END---------------------")
|
||||
|
||||
def getBalance(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user