&water: Ignore file in data/

This commit moves nowater.txt from the root of the project to the data
directory, where it can be kept private.
master
Julian Marcos 2023-09-02 22:02:39 +02:00
parent 4f631e96fe
commit 6d2a05d52c
No known key found for this signature in database
GPG Key ID: 33A8988F3B9067A0
2 changed files with 3 additions and 3 deletions

View File

View File

@ -15,12 +15,12 @@ verbs = [
class IgnoredUsers:
def __init__(self):
if 'nowater.txt' not in listdir():
open('nowater.txt', 'w').close()
if 'date/nowater.txt' not in listdir():
open('date/nowater.txt', 'w').close()
@property
def users(self):
with open('nowater.txt', 'r') as w:
with open('date/nowater.txt', 'r') as w:
u = [i.strip() for i in w.readlines() if i.strip()]
return u