Updating line spacing for notifications

This commit is contained in:
sloumdrone 2018-12-29 19:29:12 -08:00
parent cab40feb98
commit 987eda165a
1 changed files with 3 additions and 3 deletions

6
oberon
View File

@ -7,7 +7,7 @@ import subprocess
import json
version = '0.4.1'
version = '0.4.2'
home_folder = os.path.expanduser('~')
username = os.path.split(home_folder)[-1]
database = '/var/lib/oberon/oberon.sqlite'
@ -56,7 +56,7 @@ def available_moves():
p1 = len([x for x in res if x[0] == username and x[2] % 2 != 0])
p2 = len([x for x in res if x[1] == username and x[2] % 2 == 0])
if p1 + p2 > 0:
print('\nIt is your turn in oberon!\n')
print('It is your turn in oberon!\n')
def check_win_state(point, piece, board):
@ -291,7 +291,7 @@ def parse_args():
def get_user_list():
res = subprocess.run(['awk', '-F', ':', '{if ($7 == "/usr/local/bin/colorsh" && $1 != "brian")}', '/etc/passwd'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
res = subprocess.run(['awk', '-F', ':', '{if ($7 == "/usr/local/bin/colorsh") print $1}', '/etc/passwd'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
res_list = res.stdout.decode('utf-8').split('\n')
if res_list[0] == '':
return []