#53 Store access timestamp only for packagers
Merged 3 years ago by frantisekz. Opened 3 years ago by frantisekz.

@@ -25,7 +25,6 @@ 

  

  @app.route('/api/v1/packager_dashboard/<user>', methods=['GET'])

  def route_dashboard_user_data(user):

-     dashboard.update_user_access_time(user)

      packages_promise = CACHE.async_get('packager-dashboard_user_data_static', 'high', user)

      last_synced = CACHE.get_refreshed_time('packager-dashboard_user_data_static', user)

      if packages_promise == cache_utils.RefresherNotRegistered:
@@ -34,6 +33,9 @@ 

          static_info = {'status': 204, 'data': None, 'last_synced': None}

      else:

          static_info = {'status': 200, 'data': packages_promise, 'last_synced': last_synced.isoformat()}

+         if len(static_info["data"]["packages"]) > 0:

+             dashboard.update_user_access_time(user)

+ 

      prs = dashboard_user_data_prs(user)

      bzs = dashboard_user_data_bzs(user)

  

no initial comment

rebased onto 5c0d52f

3 years ago

Pull-Request has been merged by frantisekz

3 years ago
Metadata