Skip to content

Commit

Permalink
fixed: 修复 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JayLyu committed Oct 27, 2024
1 parent 4c861af commit 88fe209
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ By considering income, expenses, and their variations when buying a home, we can

| workflow | output |
| --- | --- |
| ![workflow](./images/workflow.png) | ![preview](./images/preview.png) |

| ![workflow-1](./images/workflow-1.png) | ![preview](./images/preview.png) |

汇总目标房产信息

| workflow |
| --- |
| ![workflow-1](./images/workflow-1.png) |
File renamed without changes
Binary file added images/workflow-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions nodes/node_housing_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def INPUT_TYPES(s):
FUNCTION = "exec"
OUTPUT_NODE = True
CATEGORY = "⭐️ Baikong"
DESCRIPTION = "使用 Table 预览数据,并输出 csv、json 两种格式的结果" Excel"
DESCRIPTION = "使用表格预览数据,并输出csv、json两种格式的结果"

def json_to_table(self, json_data):

Expand Down Expand Up @@ -133,8 +133,7 @@ def exec(self, csv, sort_by="", sort_direction="正序", unique_id=None, extra_p
ascending = [ascending] * len(valid_columns)

df = df.sort_values(by=valid_columns, ascending=ascending)
print(f"[BK_Table_Preview] ○ Sorted by {
valid_columns} in {sort_direction} order")
print(f"[BK_Table_Preview] ○ Sorted by {valid_columns} in {sort_direction} order")
else:
print(
f"[BK_Table_Preview] ⚠️ Warning: No valid column names found in {sort_by}")
Expand Down
2 changes: 1 addition & 1 deletion nodes/node_housing_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def exec(self, pipeline=None, 房屋总价=None, 室=None, 厅=None, 卫=None,
"小区名称": 小区名称 or "-",
"房屋总价": f"{房屋总价/10000:.2f}万元",
"房型": f"{}{}{}卫",
"建筑面积": f"{建筑面积}m²",
"建筑面积": f"{建筑面积:.2f}m²",
"得房率": f"{得房率}%" or "-",
"套内面积": f"{建筑面积*得房率/100:.2f}m²" or "-",
"楼层": f"{当前楼层}/{总楼层}" or "-",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "comfyui_baikong_buying"
description = "Home Buying Decision Factors | 买房决策因子"
version = "1.1.0"
version = "1.1.1"
license = { file = "LICENSE" }
dependencies = ["seaborn",]

Expand Down

0 comments on commit 88fe209

Please sign in to comment.