CodeForPhilly / CodeForPhilly/stately

Form submission should save number fields as numbers in JSON

未关闭
#16 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
22
派生
5
PR 合并指标
30 天内没有已合并 PR

描述

In order for this event handler to work, `cost`'s type must be an integer.

``` python
if data.cost >= 500:
change_state('Awaiting CFO Approval')
```

Which means the form data grabber should recongise the `` and save it as a number. This is like the one time when JavaScript is easier :P I assume there's no way to enable loose typing in event handlers, @mjumbewu, but worth asking..

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先定位表单数据获取器以及对 的处理。确认提交的数值在 JSON 中以数字形式存储,并确认所示的 Python 比较与 data.cost 能按预期工作。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
backend
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。