Skip to content

Commit 37dff83

Browse files
committed
Merge branch 'v2.0' of https://github.com/wingjay/jianshi
2 parents e300cb6 + 04fcc5d commit 37dff83

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

material/icon_16_16.png

1.21 KB
Loading

material/screenshots/3 copy.png

974 KB
Loading

material/xiaomilogo.png

15.3 KB
Loading

server/server/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
if not os.path.exists(path):
4949
os.popen('cd ' + current_dir +'/.. ; mkdir logs' + '; cd ' + current_dir + '/../logs/' + ' ; touch jianshi.log')
5050
formatter = logging.Formatter("[%(asctime)s] {%(pathname)s:%(lineno)d} %(levelname)s - %(message)s")
51-
handler = RotatingFileHandler(current_dir + '/../logs/jianshi.log', maxBytes=10000, backupCount=5)
51+
handler = RotatingFileHandler(current_dir + '/../logs/jianshi.log', maxBytes=10000, backupCount=1)
5252
handler.setLevel(logging.INFO)
5353
handler.setFormatter(formatter)
5454
app.logger.addHandler(handler)

server/server/data/images.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ def get_unsplash_url(index, width, height):
6060
raw_url = images[index]
6161
width = str(width)
6262
height = str(height)
63-
modified_url = raw_url + '?w=' + width + '&h=' + height
63+
modified_url = raw_url + '?fit=crop&w=' + width + '&h=' + height
6464
return modified_url

0 commit comments

Comments
 (0)