log list setter

This commit is contained in:
Nicolás Sánchez 2024-11-30 12:09:48 -03:00
parent 285a3b6de0
commit f802ddccc7
3 changed files with 7 additions and 1 deletions

View File

@ -997,6 +997,11 @@ class logger:
return [] return []
def set_log_list_max_length(self, amount):
self.log_list_max_length = amount
return self.log_list_max_length
def get_log_list(self): def get_log_list(self):
return self.log_list return self.log_list

View File

@ -24,4 +24,4 @@ connection.close()
for line in deals[::-1]: for line in deals[::-1]:
human_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(int(line[0]))) human_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(int(line[0])))
print(human_time,line[1],round(line[2],2),line[3]) print(human_time,line[1],round(line[2],2),line[3])

View File

@ -10,6 +10,7 @@ Mandatory:
6. Optimize database code. 6. Optimize database code.
7. Things that should be objects (it's not 1994): 7. Things that should be objects (it's not 1994):
* Orders. * Orders.
* Sredro.
* A lot more. * A lot more.