remove debug prints

This commit is contained in:
norohind committed 2021-12-12 21:05:26 +03:00
1 parent 85379514b3
commit f1d4e8151c
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ def get_onlinestore_data() -> list[dict]:
for item in requests.get("https://api.zaonce.net/3.0/store/product").json():
items.append(dict(name=item["title"], cur_price=item["current_price"], orig_price=item["original_price"],
image=item["image"]))
print(f"Got {len(items)} items")
# print(f"Got {len(items)} items")
return items
+2 -2
View File
@@ -34,7 +34,7 @@ class PostgresModel(AbstractModel):
database=config.postgres_database_name,
cursor_factory=psycopg2.extras.DictCursor)
print(f'Connected to {self.db.dsn}')
# print(f'Connected to {self.db.dsn}')
with self.db:
with self.db.cursor() as cursor:
@@ -42,7 +42,7 @@ class PostgresModel(AbstractModel):
def close_model(self):
self.db.close()
print(f'Connection to {self.db.dsn} closed successfully')
# print(f'Connection to {self.db.dsn} closed successfully')
@errors_catcher
def get_activity_changes(self, limit: int, low_timestamp, high_timestamp) -> list: