Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c58747

Browse files
committed
More tweaking on --update
1 parent 051db58 commit 5c58747

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

lib/core/update.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,14 @@ def __updateSqlmap():
218218

219219
def notify(event_dict):
220220
action = str(event_dict['action'])
221+
index = action.find('_')
222+
prefix = action[index + 1].upper() if index != -1 else action.capitalize()
221223

222224
if action.find('_update') != -1:
223225
return
224226

225-
index = action.find('_')
226-
prefix = action[index + 1].upper() if index != -1 else action.capitalize()
227-
228227
if action.find('_completed') == -1:
229-
print "%s %s" % (prefix, event_dict['path'])
228+
print "%s\t%s" % (prefix, event_dict['path'])
230229
else:
231230
revision = str(event_dict['revision'])
232231
index = revision.find('number ')

0 commit comments

Comments
 (0)