CulverLab / CulverLab/sparcd-web

Add hash to uploads table to reduce unnecessary changes

Open
#30 0 comments 0 reactions 0 assignees View on GitHub
Database enhancement
Dominant language
Python
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Description

This impacts the _sparcd_db.py_ file - **get_uploads** and **save_uploads** functions, the _create_db.py_ file, and the **uploads** table in the DB

The **get_uploads** function need to return the stored hash value.
The **save_uploads** function needs to do the following:
1. generate a hash for each upload's JSON
2. compare the hash against what was returned from the database if there's a hash value
3. save/update the update into the database if the hash value is different or not found

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.