From 6a76576558adc8cf15d7b44b59f0c1dc00c5b729 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 22 Aug 2017 11:54:40 +0200 Subject: deleted redis conf --- lib/app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/app.py') diff --git a/lib/app.py b/lib/app.py index c3ec9a7..5e0b3d8 100644 --- a/lib/app.py +++ b/lib/app.py @@ -1,4 +1,4 @@ -from classes import r, clear, YELLOW, BLACK, GREY +from classes import clear, YELLOW, BLACK, GREY from commands import Commands from listcommands import ListCommands import os.path @@ -24,12 +24,12 @@ class Stout(Commands): """ try: with open(config['path'], 'rb') as fin: - user = fin.readline() + user = fin.readline().split() - if user == '': + if user[0] == '': return '' else: - return user.decode('utf-8') + return user[0].decode('utf-8') except Exception: return '' -- cgit v1.2.3-18-g5258