refactor: utils/videos.py uses new toml config(fix)

pull/861/head
CordlessCoder 3 years ago
parent 8bc72da9c4
commit 49eec71f05

@ -1,5 +1,4 @@
import json
import os
import time
from typing import Dict
@ -51,7 +50,9 @@ def save_data(filename: str, reddit_title: str, reddit_id: str):
payload = {
"id": reddit_id,
"time": str(int(time.time())),
"background_credit": str(os.getenv("background_credit")),
"background_credit": settings.config["settings"]["background_credit"]
if "background_credit" in settings.config["settings"]
else "",
"reddit_title": reddit_title,
"filename": filename,
}

Loading…
Cancel
Save