Spaces:
Runtime error

sara.mesquita commited on
Commit
2228134
·
1 Parent(s): 72b2209

fix: remove duplicate lines in database.py

Browse files
Files changed (1) hide show
  1. core/database.py +0 -2
core/database.py CHANGED
@@ -241,6 +241,4 @@ class Database:
241
  def total_animals(self) -> int:
242
  with self._conn() as conn:
243
  return conn.execute("SELECT COUNT(*) FROM animals").fetchone()[0]
244
- as conn:
245
- return conn.execute("SELECT COUNT(*) FROM animals").fetchone()[0]
246
 
 
241
  def total_animals(self) -> int:
242
  with self._conn() as conn:
243
  return conn.execute("SELECT COUNT(*) FROM animals").fetchone()[0]
 
 
244