Skip to content

Commit

Permalink
algo para que funcione
Browse files Browse the repository at this point in the history
  • Loading branch information
logos914 committed Nov 25, 2024
1 parent 09ce688 commit e134fcd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions models/usuario.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ def is_anonymous(self):

def get_id(self):
return str(self.id)

@staticmethod
def listar_json():
return [usuario.serialize() for usuario in Usuario.listar()]


2 changes: 1 addition & 1 deletion models/vehiculo.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def serialize(self):
'matricula': self.matricula,
'id_traccar': self.id_traccar,
'estado': self.estado,
'kilometraje': self.kilometraje
'kilometraje': self.kilometraje,
}

@staticmethod
Expand Down

0 comments on commit e134fcd

Please sign in to comment.