Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Commit

Permalink
Fix set_moderators in db
Browse files Browse the repository at this point in the history
  • Loading branch information
cpacia committed Jan 6, 2016
1 parent 27072f6 commit 0bbf540
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions db/datastore.py
Expand Up @@ -666,6 +666,6 @@ def get(self):

def set_moderators(self, moderator_list):
cursor = self.db.cursor()
cursor.execute('''INSERT OR REPLACE INTO settings(id, moderator_list) VALUES (?,?)''',
(1, moderator_list))
cursor.execute('''UPDATE settings SET moderator_list=? WHERE id=1''',
(moderator_list,))
self.db.commit()
2 changes: 1 addition & 1 deletion protos/objects.proto
Expand Up @@ -12,7 +12,7 @@ import "countries.proto";
//An object containing information about the node.
//Some fields are optional as they aren't needed in all situations.
message Node {
required bytes guid = 1;
required bytes guid = 1;
required bytes signedPublicKey = 2; // <64 byte signature><32 byte public key>
optional string ip = 3;
optional uint32 port = 4;
Expand Down

0 comments on commit 0bbf540

Please sign in to comment.