This repository has been archived on 2024-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
db-manager/src/main.py

32 lines
1.1 KiB
Python
Raw Normal View History

2023-02-11 12:03:39 +00:00
# db-manager - Builds and manages an OwlBoard database instance - To be run on a
# cron schedule
2023-02-09 20:58:48 +00:00
# Copyright (C) 2023 Frederick Boniface
2023-02-11 12:03:39 +00:00
# This program is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version.
2023-02-09 20:58:48 +00:00
2023-02-11 12:03:39 +00:00
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
2023-02-09 20:58:48 +00:00
2023-02-11 12:03:39 +00:00
# You should have received a copy of the GNU General Public License along with this
# program. If not, see
2023-02-09 21:47:59 +00:00
# https://git.fjla.uk/OwlBoard/db-manager/src/branch/main/LICENSE
2023-02-11 12:03:39 +00:00
print("main.py: Initialising db-manager")
2023-02-11 15:16:25 +00:00
#Third Party Imports
2023-02-09 21:47:59 +00:00
import os
import time
2023-02-11 15:16:25 +00:00
#Local Imports
import corpus
2023-02-11 20:10:11 +00:00
#import mongo
2023-02-11 15:16:25 +00:00
import logger as log
2023-02-09 21:47:59 +00:00
2023-02-11 20:10:11 +00:00
#This is only a test run:
rawCorpus = corpus.fetch()
cleanCorpus = corpus.removeEmpty(rawCorpus)
stationsOnly = corpus.onlyStations(cleanCorpus)
print("DONE")