From 4878654bd897da4a5741e88ecb439c177acabc90 Mon Sep 17 00:00:00 2001 From: "K. Shankari" Date: Sun, 30 Oct 2016 20:59:40 -0700 Subject: [PATCH] Restore some aspects of the previous interface To keep the old, obsolete code happy. Implementations are dummy since they are effectively unused. Will purge them in a giant lump over December break. --- emission/net/api/stats.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/emission/net/api/stats.py b/emission/net/api/stats.py index b162b7723..5f95c9550 100644 --- a/emission/net/api/stats.py +++ b/emission/net/api/stats.py @@ -98,3 +98,30 @@ def createEntry(user, stat, ts, reading): 'ts': float(ts), 'reading': reading} +# Dummy functions to keep the old, obsolete code happy. +# Will do a big purge over winter break + +STAT_TRIP_MGR_PCT_SHOWN = "tripManager.pctShown" +STAT_TRIP_MGR_TRIPS_FOR_DAY = "tripManager.tripsForDay" + +STAT_MY_CARBON_FOOTPRINT = "footprint.my_carbon" +STAT_MY_CARBON_FOOTPRINT_NO_AIR = "footprint.my_carbon.no_air" +STAT_MY_OPTIMAL_FOOTPRINT = "footprint.optimal" +STAT_MY_OPTIMAL_FOOTPRINT_NO_AIR = "footprint.optimal.no_air" +STAT_MY_ALLDRIVE_FOOTPRINT = "footprint.alldrive" + +STAT_PCT_CLASSIFIED = "game.score.pct_classified" +STAT_MINE_MINUS_OPTIMAL = "game.score.mine_minus_optimal" +STAT_ALL_DRIVE_MINUS_MINE = "game.score.all_drive_minus_mine" +STAT_SB375_DAILY_GOAL = "game.score.sb375_daily_goal" + +STAT_MEAN_FOOTPRINT = "footprint.mean" +STAT_MEAN_FOOTPRINT_NO_AIR = "footprint.mean.no_air" +STAT_GAME_SCORE = "game.score" +STAT_VIEW_CHOICE = "view.choice" + +def storeServerEntry(user, stat, ts, reading): + pass + +def storeResultEntry(user, stat, ts, reading): + pass