Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
41381b9b
Commit
41381b9b
authored
Mar 12, 2019
by
Irving David
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quitados caracteres en español que marcan error en el server 59
parent
26f67673
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
views.py
administration/views.py
+4
-4
views.py
users/views.py
+3
-3
No files found.
administration/views.py
View file @
41381b9b
...
@@ -231,13 +231,13 @@ def to_if(name):
...
@@ -231,13 +231,13 @@ def to_if(name):
#-----------------------------------------------
#-----------------------------------------------
def
best_unit_size
(
bytes_size
):
def
best_unit_size
(
bytes_size
):
"""
"""
Obtenga un tama
ño en bytes y convié
rtalo en el mejor prefijo IEC para facilitar la lectura.
Obtenga un tama
no en bytes y convie
rtalo en el mejor prefijo IEC para facilitar la lectura.
Devuelva un diccionario con tres pares de claves / valores:
Devuelva un diccionario con tres pares de claves / valores:
"s" - (flotador) Tama
ño del camino convertido a la mejor unidad para una fá
cil lectura
"s" - (flotador) Tama
no del camino convertido a la mejor unidad para una fa
cil lectura
"u" - (str) El prefijo (IEC) para s (de bytes (2 ^ 0) a YiB (2 ^ 80))
"u" - (str) El prefijo (IEC) para s (de bytes (2 ^ 0) a YiB (2 ^ 80))
"b" - (int / long) El tama
ñ
o original en bytes
"b" - (int / long) El tama
n
o original en bytes
"""
"""
for
exp
in
range
(
0
,
90
,
10
):
for
exp
in
range
(
0
,
90
,
10
):
...
@@ -249,4 +249,4 @@ def best_unit_size(bytes_size):
...
@@ -249,4 +249,4 @@ def best_unit_size(bytes_size):
return
str
(
round
(
bu_size
,
2
))
+
" "
+
unit
return
str
(
round
(
bu_size
,
2
))
+
" "
+
unit
#------------------------------------------------
#------------------------------------------------
\ No newline at end of file
users/views.py
View file @
41381b9b
...
@@ -320,13 +320,13 @@ def to_if(name):
...
@@ -320,13 +320,13 @@ def to_if(name):
# -----------------------------------------------
# -----------------------------------------------
def
best_unit_size
(
bytes_size
):
def
best_unit_size
(
bytes_size
):
"""
"""
Obtenga un tama
ño en bytes y convié
rtalo en el mejor prefijo IEC para facilitar la lectura.
Obtenga un tama
no en bytes y convie
rtalo en el mejor prefijo IEC para facilitar la lectura.
Devuelva un diccionario con tres pares de claves / valores:
Devuelva un diccionario con tres pares de claves / valores:
"s" - (flotador) Tama
ño del camino convertido a la mejor unidad para una fá
cil lectura
"s" - (flotador) Tama
no del camino convertido a la mejor unidad para una fa
cil lectura
"u" - (str) El prefijo (IEC) para s (de bytes (2 ^ 0) a YiB (2 ^ 80))
"u" - (str) El prefijo (IEC) para s (de bytes (2 ^ 0) a YiB (2 ^ 80))
"b" - (int / long) El tama
ñ
o original en bytes
"b" - (int / long) El tama
n
o original en bytes
"""
"""
for
exp
in
range
(
0
,
90
,
10
):
for
exp
in
range
(
0
,
90
,
10
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment