Skip to content
This repository was archived by the owner on Oct 8, 2018. It is now read-only.

Commit 95c8077

Browse files
committed
Clean up code
1 parent 812cf26 commit 95c8077

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plot.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ def plotUsers(): #Plot the most active users
7979
plt.xlim([min(y_pos)-0.5, max(y_pos)+0.5])
8080
plt.xticks(y_pos, users)
8181
plt.ylabel('Messages')
82-
plt.ylim
8382
ax.grid(True)
8483
plt.show()
8584
quit()
@@ -113,9 +112,9 @@ def plotUsers(): #Plot the most active users
113112
processedArray = []
114113
with tqdm(leave=True,unit=' messages', total=lineNumber, desc="Processing - Stage 1") as counter:
115114
for line in textfileArray:
116-
timestamp, name, message = line.split(" - ")[:3] #lineSplitted[0] is timestamp, lineSplitted[1] is name, discard the rest
115+
timestamp, name, message = line.split(" - ")[:3]
117116
if args.search != "None":
118-
processedArray.append([timestamp, name, message]) #lineSplitted[2] is the message.
117+
processedArray.append([timestamp, name, message])
119118
else:
120119
processedArray.append([timestamp, name])
121120
counter.update(1)

0 commit comments

Comments
 (0)