Skip to content

Commit

Permalink
Merge branch 'develop' into 'master'
Browse files Browse the repository at this point in the history
Fix for Redis-py 3.0

See merge request glitterworld-prime-ssc/glitterworld-api!17
  • Loading branch information
AdamLeyshon committed Feb 24, 2019
2 parents 8b3ab5a + 444532f commit a14c5d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Scripts/import_game_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

# Set full name for Thing, Ours is the version of truth, give it a high score.
pipe.zadd(lib.consts.KEY_THING_LOCALE_THING_NAMES.format(thing_data['LanguageCode'], thing.Hash),
thing_data['LocalizedName'], 1000)
{thing_data['LocalizedName']: 1000})

count = len(pipe.execute())
print('Wrote {} items'.format(count))
2 changes: 1 addition & 1 deletion lib/colonies/colony.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def ping(self):
pipe.zremrangebyscore(consts.KEY_BUCKET_COLONIES_ACTIVE, '-inf', '(' + str(epoch_start))

# Add this colony to the set or update the score if it's already in it.
pipe.zadd(consts.KEY_BUCKET_COLONIES_ACTIVE, self.Hash, current_epoch)
pipe.zadd(consts.KEY_BUCKET_COLONIES_ACTIVE, {self.Hash: current_epoch})

# Add this colony to set for current day if it's not already in it.
pipe.sadd(consts.KEY_TRENDS_HISTORICAL_COLONIES_ACTIVE_BY_DATE.format(current_date), self.Hash)
Expand Down

0 comments on commit a14c5d7

Please sign in to comment.