diff options
| author | rr- | 2016-08-20 13:04:49 +0200 |
|---|---|---|
| committer | rr- | 2016-08-20 13:06:19 +0200 |
| commit | 28bcbd33b9f1203c8161988a30ad008c5490d064 (patch) | |
| tree | 353ce385752197ce9c8611f7f090b9cd7a534b7e /server/szurubooru/func/posts.py | |
| parent | 9014baab92007fcdd624be9e81e45ba92dce97ae (diff) | |
server/posts: use SHA1 checksums
This changes the checksums to ones that are compatible with 1.x, which
relieves the migration script from recalculating the checksums for all
the posts.
Diffstat (limited to 'server/szurubooru/func/posts.py')
| -rw-r--r-- | server/szurubooru/func/posts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/szurubooru/func/posts.py b/server/szurubooru/func/posts.py index e79f149..31ab8d1 100644 --- a/server/szurubooru/func/posts.py +++ b/server/szurubooru/func/posts.py @@ -263,7 +263,7 @@ def update_post_content(post, content): raise InvalidPostContentError( 'Unhandled file type: %r' % post.mime_type) - post.checksum = util.get_md5(content) + post.checksum = util.get_sha1(content) other_post = db.session \ .query(db.Post) \ .filter(db.Post.checksum == post.checksum) \ |