Moibe commited on
Commit
97ce1fc
·
1 Parent(s): 8b6d4ad

Firewhale crea dato

Browse files
Files changed (1) hide show
  1. herramientas.py +3 -0
herramientas.py CHANGED
@@ -1,4 +1,5 @@
1
  from datetime import datetime
 
2
  import pytz
3
  import os
4
 
@@ -46,6 +47,8 @@ def registrar_evento(event_type: str):
46
  # Por ejemplo: "FECHA_HORA,TIPO_DE_EVENTO\n"
47
  log_line = f"{fecha},{event_type}\n"
48
 
 
 
49
  # 5. Abrir el archivo en modo de añadir ('a') y escribir la línea
50
  try:
51
  with open(registro_path, 'a') as f:
 
1
  from datetime import datetime
2
+ import fireWhale
3
  import pytz
4
  import os
5
 
 
47
  # Por ejemplo: "FECHA_HORA,TIPO_DE_EVENTO\n"
48
  log_line = f"{fecha},{event_type}\n"
49
 
50
+ fireWhale.creaDato('usuarios', 'log', 'registro', log_line)
51
+
52
  # 5. Abrir el archivo en modo de añadir ('a') y escribir la línea
53
  try:
54
  with open(registro_path, 'a') as f: