1
0
mirror of https://github.com/bspeice/Melodia synced 2025-07-06 00:14:44 -04:00

Add backup code

This commit is contained in:
Bradlee Speice
2012-12-18 19:58:50 -05:00
parent d057b2f455
commit 78df76cd59
2 changed files with 23 additions and 1 deletions

View File

@ -78,4 +78,3 @@ class Song (models.Model):
from Melodia.melodia_settings import HASH_FUNCTION as hash
f = open(self.url, 'rb')
self.file_hash = hash(f.read())