move to nextcloud
This commit is contained in:
Родитель
84729094ab
Коммит
4816dbe8b6
2
Makefile
2
Makefile
|
@ -38,5 +38,5 @@ test:
|
|||
|
||||
.PHONY: typecheck
|
||||
typecheck:
|
||||
python3 -m mypy $(CURDIR)/owncloud_news_updater --disallow-untyped-defs
|
||||
python3 -m mypy $(CURDIR)/nextcloud_news_updater --disallow-untyped-defs
|
||||
|
||||
|
|
|
@ -4,10 +4,9 @@ import time
|
|||
import traceback
|
||||
from typing import List
|
||||
|
||||
from owncloud_news_updater.api.api import Feed
|
||||
|
||||
from owncloud_news_updater.common.logger import Logger
|
||||
from owncloud_news_updater.config import Config
|
||||
from nextcloud_news_updater.api.api import Feed
|
||||
from nextcloud_news_updater.common.logger import Logger
|
||||
from nextcloud_news_updater.config import Config
|
||||
|
||||
|
||||
class UpdateThread(threading.Thread):
|
||||
|
|
|
@ -42,13 +42,14 @@ class ArgumentParser:
|
|||
'updater. If omitted, the default one '
|
||||
'will be used')
|
||||
self.parser.add_argument('--user', '-u',
|
||||
help='Admin username to log into ownCloud. '
|
||||
help='Admin username to log into Nextcloud. '
|
||||
'Must be specified on the command line '
|
||||
'or in the config file if the updater '
|
||||
'should update over HTTP')
|
||||
self.parser.add_argument('--password', '-p',
|
||||
help='Admin password to log into ownCloud if '
|
||||
'the updater should update over HTTP')
|
||||
help='Admin password to log into Nextcloud '
|
||||
'if the updater should update over HTTP'
|
||||
)
|
||||
self.parser.add_argument('--version', '-v', action='version',
|
||||
version=get_version(),
|
||||
help='Prints the updater\'s version')
|
||||
|
|
|
@ -7,7 +7,7 @@ class Logger:
|
|||
def __init__(self, config: Config) -> None:
|
||||
log_format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
||||
logging.basicConfig(format=log_format)
|
||||
self.logger = logging.getLogger('ownCloud News Updater')
|
||||
self.logger = logging.getLogger('Nextcloud News Updater')
|
||||
if config.loglevel == 'info':
|
||||
self.logger.setLevel(logging.INFO)
|
||||
else:
|
||||
|
|
Загрузка…
Ссылка в новой задаче