Browse Source

Moved conervative_refresh_criterion to db_methods and deleted the now-useless constants.py

master
Abrax 3 years ago
parent
commit
d82c379038
2 changed files with 1 additions and 2 deletions
  1. 0
    1
      constants.py
  2. 1
    1
      db_methods.py

+ 0
- 1
constants.py View File

@@ -1 +0,0 @@
conservative_refresh_criterion = 10

+ 1
- 1
db_methods.py View File

@@ -6,12 +6,12 @@ import db_model
import file_io
import time_methods
import web_methods
from constants import conservative_refresh_criterion
from db_model import Thread, db
from file_io import path_to_database, ensure_directory_exists, timestamped_path_to_exported_threads_file
from json_methods import time_of_last_reply, get_oldest_reply
from web_methods import fetch_and_parse_thread_json, dump_thread_html, dump_thread_files, parse_url

conservative_refresh_criterion = 10

def create_new_database():
"""Creates a new database. Will fail if database already exists."""

Loading…
Cancel
Save