fix removing file

This commit is contained in:
j 2014-05-25 16:05:06 +02:00
parent efc6cfaddc
commit f28e3816ff
2 changed files with 2 additions and 0 deletions

View file

@ -258,6 +258,7 @@ class Changelog(db.Model):
peer = User.get_or_create(peerid)
if not 'username' in peer.info:
peer.info['username'] = username
peer.update_name()
peer.save()
return True

View file

@ -406,6 +406,7 @@ class Item(db.Model):
self.delete()
else:
self.update()
Transfer.query.filter_by(item_id=self.id).delete()
Changelog.record(user, 'removeitem', self.id)
class Sort(db.Model):