more cleanups

This commit is contained in:
Tomáš Mládek 2018-10-02 16:16:30 +02:00 committed by Tomáš Mládek
parent ab147a880f
commit d95fa1e048
3 changed files with 3 additions and 3 deletions

View file

@ -215,7 +215,7 @@ def main():
with open("initial.txt") as f: with open("initial.txt") as f:
text = f.read() text = f.read()
markov = markovify.NewlineText(text.lower()) markov = markovify.NewlineText(text.lower())
print(markov.make_sentence()) logger.info("Sentence of the day: " + markov.make_sentence())
updater = Updater("***REMOVED***") updater = Updater("***REMOVED***")

View file

@ -2,5 +2,5 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd ${DIR} cd ${DIR}
./update.sh & ./update.sh &
source ./venv/bin/activate source ./.venv/bin/activate
python3 delojza.py 2>&1 |tee -a delojza.log python3 delojza.py 2>&1 |tee -a delojza.log

View file

@ -2,6 +2,6 @@
while :;do while :;do
NUM=$( grep 'INFO - Downloading' delojza.log|wc -l) NUM=$( grep 'INFO - Downloading' delojza.log|wc -l)
echo $NUM echo $NUM
curl -s 'kunsaxan.sdbs.cz/counter.php?key=delojza7953713b19ef2ea055156c8dc175bf80&count='$NUM curl -s 'https://kunsaxan.sdbs.cz/counter.php?key=delojza7953713b19ef2ea055156c8dc175bf80&count='$NUM
sleep 300; sleep 300;
done done