This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN MESSAGE. | |
WWYMYWitBKt8N86 7yGSnPdshFyHiU3 oj3futrkhPY2Dq9 fuLC3w1cHR5Y47o | |
CfULrbiXXlgsDYy YtEq6Nz6aXqTCKq 6Xr2MZHgg707YCp IYG7eEdfRUA9Ex5 | |
lpAvdkBh0D5ZRo0 dfetui1fYKVyWjA RAHHGUOhdH7Ll61 p5Gy0F4SnaCByQr | |
PqPhTqvhOHWaeEX BeFRxrldhBkqjXH nDGFu2IP. | |
END MESSAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import myfitnesspal | |
import os | |
import datetime | |
import pymongo | |
from datetime import datetime | |
def hash_meal(meal): | |
hash = 27 | |
for k, v in meal.totals.items(): | |
hash += hash(k) + hash(v) |