Skip to content

Commit

Permalink
Restore some aspects of the previous interface
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
shankari committed Oct 31, 2016
1 parent ca7ce14 commit 4878654
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions emission/net/api/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4878654

Please sign in to comment.