mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 14:10:52 -07:00
Merge branch 'nightly' into python3
This commit is contained in:
commit
c1a7b3753c
3 changed files with 3 additions and 3 deletions
|
@ -461,7 +461,7 @@ $('*').on('click', '.refresh_pms_image', function (e) {
|
|||
});
|
||||
|
||||
// Taken from http://stackoverflow.com/questions/10420352/converting-file-size-in-bytes-to-human-readable#answer-14919494
|
||||
function humanFileSize(bytes, si) {
|
||||
function humanFileSize(bytes, si = true) {
|
||||
var thresh = si ? 1000 : 1024;
|
||||
if (Math.abs(bytes) < thresh) {
|
||||
return bytes + ' B';
|
||||
|
|
|
@ -1047,7 +1047,7 @@ def build_datatables_json(kwargs, dt_columns, default_sort_col=None):
|
|||
return json.dumps(json_data)
|
||||
|
||||
|
||||
def humanFileSize(bytes, si=False):
|
||||
def humanFileSize(bytes, si=True):
|
||||
if str(bytes).isdigit():
|
||||
bytes = cast_to_float(bytes)
|
||||
else:
|
||||
|
|
|
@ -264,7 +264,7 @@ def update():
|
|||
logger.info('Windows .exe updating not supported yet.')
|
||||
|
||||
elif plexpy.INSTALL_TYPE == 'git':
|
||||
output, err = runGit('pull {} {} --ff-only'.format(plexpy.CONFIG.GIT_REMOTE,
|
||||
output, err = runGit('pull --ff-only {} {}'.format(plexpy.CONFIG.GIT_REMOTE,
|
||||
plexpy.CONFIG.GIT_BRANCH))
|
||||
|
||||
if not output:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue