[odrs-web/oscp] Disable all the fetch counts



commit b4b1c92886616a9fa425dd377ca4f552244926d9
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jul 1 15:49:39 2019 +0100

    Disable all the fetch counts

 app_data/odrs/views_api.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app_data/odrs/views_api.py b/app_data/odrs/views_api.py
index 9cb8172..325c511 100644
--- a/app_data/odrs/views_api.py
+++ b/app_data/odrs/views_api.py
@@ -175,15 +175,15 @@ def api_fetch():
         return json_error('the user_hash is invalid')
 
     # increments the fetch count on one specific application
-    datestr = _get_datestr_from_dt(datetime.date.today())
-    stmt = insert(Analytic).values(datestr=datestr, app_id=item['app_id'])
+#    datestr = _get_datestr_from_dt(datetime.date.today())
+#    stmt = insert(Analytic).values(datestr=datestr, app_id=item['app_id'])
 #    if db.session.bind.dialect.name != 'sqlite': # pylint: disable=no-member
 #        stmt_ondupe = stmt.on_duplicate_key_update(datestr=stmt.inserted.datestr,
 #                                                   app_id=stmt.inserted.app_id,
 #                                                   fetch_cnt=stmt.inserted.fetch_cnt + 1)
 #    else:
-    stmt_ondupe = stmt
-    db.session.execute(stmt_ondupe) # pylint: disable=no-member
+#        stmt_ondupe = stmt
+#    db.session.execute(stmt_ondupe) # pylint: disable=no-member
 
     # also add any compat IDs
     app_ids = [item['app_id']]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]