Commit 3a6c4808 by 于方蒙

update

parent 52c6ca98
...@@ -126,7 +126,7 @@ def create_rent(): ...@@ -126,7 +126,7 @@ def create_rent():
rent_detail.content = open_hatch.content rent_detail.content = open_hatch.content
rent_detail.summary = open_hatch.summary rent_detail.summary = open_hatch.summary
open_hatch.left_count -= 1 # open_hatch.left_count -= 1
if open_hatch.left_count <= 0: if open_hatch.left_count <= 0:
open_hatch.status = 2 open_hatch.status = 2
db.session.add(rent) db.session.add(rent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment