python查询redmine中符合特定日期的issue

  • 相关库
  1. redminelib
  2. datetime
  • 例子  
#用于取得特定时间后更新的问题票,减少同步的时间
from redminelib import Redmine
import datetime
redmine = Redmine('redmine address', key='your key')
now = datetime.datetime.now()
update_time = now.strftime(">=%Y-%m-%dT%H:%M:%SZ")
issues = redmine.issue.filter(
    project_id='myProject',
    status_id='open',
    updated_on=update_time)

 

posted @ 2019-10-15 12:37  不懂技术  阅读(641)  评论(0编辑  收藏  举报