Skip to content

Commit

Permalink
Limit readboard history to last 500 entries
Browse files Browse the repository at this point in the history
  • Loading branch information
nehaljwani authored and ffledgling committed Mar 8, 2015
1 parent d38ec39 commit 646c9f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dtella/client/dc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,7 @@ def handleCmd_ADD(self, out, args, prefix):

response = urllib2.urlopen(local.read_board_view_url)
text = self.main.pk_enc.decrypt(response.read().decode("base64")) + '\n' + ' '.join(args).lower()
text = '\n'.join(text.split('\n')[-500 : ])
text = self.main.pk_enc.encrypt(text).encode("base64")

URL = local.read_board_edit_url
Expand Down

0 comments on commit 646c9f7

Please sign in to comment.