mirror of
https://codeberg.org/Yael-II/ArXtic.git
synced 2026-03-15 06:16:26 +01:00
2025-09-22: Added setup procedure
This commit is contained in:
@@ -37,7 +37,6 @@ FILTERS_DIR = os.environ.get("FILTERS_DIR")
|
||||
DB_DIR = os.environ.get("DB_DIR")
|
||||
QUERY_URL = os.environ.get("QUERY_URL")
|
||||
RSS_URL = os.environ.get("RSS_URL")
|
||||
FILTERS_LIST = os.environ.get("FILTERS_LIST").split(",")
|
||||
|
||||
COLOUR_DEFAULT="\033[0m"
|
||||
COLOUR_INPUT="\033[36m"
|
||||
@@ -78,8 +77,9 @@ def print_entries(entries, fields=None):
|
||||
|
||||
def get_filters():
|
||||
filters = []
|
||||
for i in range(len(FILTERS_LIST)):
|
||||
path = FILTERS_DIR + FILTERS_LIST[i]
|
||||
filters_list = [f for f in os.listdir(FILTERS_DIR) if not f[0] == "."]
|
||||
for i in range(len(filters_list)):
|
||||
path = FILTERS_DIR + filters_list[i]
|
||||
filter_file = open(path)
|
||||
dic = {"fields": [], "values": []}
|
||||
for line in filter_file.readlines():
|
||||
@@ -121,4 +121,5 @@ def today_arxiv():
|
||||
print_entries(entries, fields)
|
||||
return entries, fields
|
||||
|
||||
## Find using arxiv id
|
||||
today_arxiv()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user