Fix get_hash method

This commit is contained in:
Oz N Tiram
2022-09-13 15:31:10 +02:00
parent 4709420951
commit d1aea86f7b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1218,7 +1218,7 @@ def do_init(
if (project.lockfile_exists and not ignore_pipfile) and not skip_lock:
old_hash = project.get_lockfile_hash()
new_hash = project.calculate_pipfile_hash()
if new_hash.value != old_hash:
if new_hash != old_hash:
if deploy:
click.secho(
"Your Pipfile.lock ({}) is out of date. Expected: ({}).".format(
+1 -1
View File
@@ -1011,7 +1011,7 @@ class Project:
def calculate_pipfile_hash(self):
# Update the lockfile if it is out-of-date.
p = plette.Pipfile.load(open(self.pipfile_location))
return p.get_hash()
return p.get_hash().value
def ensure_proper_casing(self):
"""Ensures proper casing of Pipfile packages"""