diff --git a/src/fastwq/constants.py b/src/fastwq/constants.py index dfcd918..84f4107 100644 --- a/src/fastwq/constants.py +++ b/src/fastwq/constants.py @@ -21,25 +21,20 @@ from .lang import _ -VERSION = '1.0.0' +VERSION = 'v1.0.0' class Endpoint: - repository = u' https://github.com/sth2018/FastWordQuery' + repository = u'https://github.com/sth2018/FastWordQuery' feedback_issue = u'https://github.com/sth2018/FastWordQuery/issues' feedback_mail = u'wenhonghuang@gmail.com' - check_version = u'https://raw.githubusercontent.com/sth2018/FastWordQuery/gh-pages/version' - new_version = u' https://github.com/sth2018/FastWordQuery' + check_version = u'sth2018/FastWordQuery' user_guide = u'https://sth2018.github.io/FastWordQuery/' class Template: - tmpl_about = u'{t0}
{version}
{t1}
{url}
{t2}
{feedback0}
{feedback1}'.format( - t0=_('VERSION'), version=VERSION, t1=_('REPOSITORY'), url=Endpoint.repository, + tmpl_about = u'{t0}
{version}
{t1}
{url}
{t2}
{feedback0}
{feedback1}'.format( + t0=_('VERSION'), version=VERSION, + t1=_('REPOSITORY'), url=Endpoint.repository, t2=_('FEEDBACK'), feedback0=Endpoint.feedback_issue, feedback1=Endpoint.feedback_mail) - new_version = u'{info} V{version}'.format( - info=_('NEW_VERSION'), url=Endpoint.new_version, version='{version}') - latest_version = _('LATEST_VERSION') - abnormal_version = _('ABNORMAL_VERSION') - check_failure = u'{msg}' miss_css = u'MDX dictonary {dict} misses css file {css}.
Please choose the file.' diff --git a/src/fastwq/ui.py b/src/fastwq/ui.py index b71d505..96463f9 100644 --- a/src/fastwq/ui.py +++ b/src/fastwq/ui.py @@ -463,7 +463,7 @@ class OptionsDialog(QDialog): def check_updates(): try: from .libs import ankihub - if not ankihub.update(['sth2018/FastWordQuery']): + if not ankihub.update([Endpoint.check_version]): showInfo(_('LATEST_VERSION')) except: showInfo(_('CHECK_FAILURE'))