Beispiel #1
0
Datei: main.py Projekt: pnw/jiggl
        raise
    finally:
        if logged_entries:
            print 'Marking %s Toggl entries as tagged' % (len(logged_entries))
            resp = toggl.update_tags(list(z.pluck('id', logged_entries)), [JIGGLD_TAG])
        else:
            print 'No Toggl entries to tag as jiggld'


def main():
    # print jira.add_worklog('SARR-156', timeSpentSeconds=60, comment='Test!')
    # exit()

    #
    # t = TicketCommentEntry('SARR-156', 'test', {'duration': 122})
    # add_worklog(t)
    # exit()

    for_day((datetime.now() - timedelta(days=1)).date())
    # for_day(31)
    # for d in range(1, 4 + 1):
    #     for_day(d)
    # clear_all_tags(d)

    exit()


if __name__ == '__main__':
    clear_screen()
    main()
Beispiel #2
0
 def say_hi(self):
     clear_screen()
     print bcolors.header('Welcome to Jiggl!\n')
     print 'To use Jiggl, I\'ll need your credentials to both Jiggl and Toggl.\n' \
           'Your credentials will be stored in the file ' \
           'located at:\n\n' + bcolors.bold(settings_filepath)
Beispiel #3
0
 def say_hi(self):
     clear_screen()
     print bcolors.header('Welcome to Jiggl!\n')
     print 'To use Jiggl, I\'ll need your credentials to both Jiggl and Toggl.\n' \
           'Your credentials will be stored in the file ' \
           'located at:\n\n' + bcolors.bold(settings_filepath)