Skip to content

Commit 3c15e50

Browse files
author
madhaven
committed
update search display
also removed old code that was not important
1 parent f0dc932 commit 3c15e50

File tree

2 files changed

+3
-171
lines changed

2 files changed

+3
-171
lines changed

crons/diary2.py

Lines changed: 0 additions & 168 deletions
This file was deleted.

diary.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
try:
2-
version = '3.1'
2+
version = '3.1_debug'
33
testing = version[-5:]=='debug'
44
import os
55
from os import sep
@@ -260,13 +260,13 @@ def search(self, args, strictMode:bool=False):
260260
if s.lower() not in str(entry).lower(): break
261261
elif i == len(args) - 1:
262262
result_count += 1
263-
print(entry.time.strftime('%Y %m %d %H:%M:%S %a'), '|', str(entry), end='')
263+
print(entry.time.strftime('%Y %b %d %H:%M:%S %a'), '|', str(entry), end='')
264264
else:
265265
for entry in self.entries:
266266
for i, s in enumerate(args):
267267
if s.lower() in str(entry).lower():
268268
result_count += 1
269-
print(entry.time.strftime('%Y %m %d %H:%M:%S %a'), '|', str(entry), end='')
269+
print(entry.time.strftime('%Y %b %d %H:%M:%S %a'), '|', str(entry), end='')
270270
break
271271
print(result_count, "entries found")
272272

0 commit comments

Comments
 (0)