Skip to content
This repository was archived by the owner on Nov 13, 2019. It is now read-only.

Commit a5e09c7

Browse files
committed
FIX bug
1 parent 2deb128 commit a5e09c7

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

NUAAiCal/main.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
from __future__ import unicode_literals
44

55
from datetime import datetime
6-
import settings
7-
from FindFirstDayofSemester import get_semester_start_date
8-
from GenerateICS import create_ics, export_ics
9-
from Lesson import Lesson
6+
from . import settings
7+
from .FindFirstDayofSemester import get_semester_start_date
8+
from .GenerateICS import create_ics, export_ics
9+
from .Lesson import Lesson
1010
from lxml import etree
1111
from zeep import Client
1212
from builtins import input
@@ -35,7 +35,7 @@ def main():
3535
print('学号: 你的南京航空航天大学学号')
3636
print("-------- 请填写以下信息 --------")
3737

38-
xn = input('学年: '.encode('utf-8'))
38+
xn = input('学年: ')
3939

4040
if '-' in xn:
4141

@@ -48,11 +48,11 @@ def main():
4848
else:
4949

5050
if not settings.DEBUG:
51-
xq = input('学期: '.encode('utf-8'))
51+
xq = input('学期: ')
5252
if not (xq == '1' or xq == '2'):
5353
print("学期输入错误! 提示:1为上学期,2为下学期!")
5454
exit()
55-
xh = input('学号: '.encode('utf-8'))
55+
xh = input('学号: ')
5656
print("==================================================")
5757

5858
semester_start_date = get_semester_start_date(years, xq, client)

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
long_description = f.read()
1010
setup(
1111
name='NUAAiCal',
12-
version='0.4.0',
12+
version='0.4.1',
1313
description='Generate NUAA curriculum to iCalendar file.',
1414
url='https://github.com/Triple-Z/NUAA-iCal-Python',
1515
author='TripleZ',
@@ -20,7 +20,7 @@
2020
# 3 - Alpha
2121
# 4 - Beta
2222
# 5 - Production/Stable
23-
'Development Status :: 3 - Alpha',
23+
'Development Status :: 4 - Beta',
2424
'Intended Audience :: Developers',
2525
'License :: OSI Approved :: MIT License',
2626
# 'Programming Language :: Python :: 2',
@@ -32,7 +32,7 @@
3232
'Programming Language :: Python :: 3.6',
3333
],
3434
keywords='NUAA iCalendar ics curriculum iCal schedule calendar',
35-
packages=find_packages(),
35+
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
3636
entry_points={
3737
'console_scripts': [
3838
'nuaaical=NUAAiCal.main:main',

0 commit comments

Comments
 (0)