Comments (10)
感谢(JackZho)提出报错信息
已经找到问题
并已修复
其他函数调用main报错
from zxjy_dk.
客气了大佬,应该我谢你才对,现在还有一个问题就是使用sendReport.py进行日报、周报、月报操作时,出现以下提示:
用户张三 开启日报
当前状态是正在实习
未找到 Error: 'content'
未找到 Error: 'content'
未找到 Error: 'content'
未找到 Error: 'content'
未找到 Error: 'content'
用户张三 开启周报
未找到 Error: 'content'
未找到 Error: 'content'
未找到 Error: 'content'
未找到 Error: 'content'
未找到 Error: 'content'
from zxjy_dk.
客气了大佬,应该我谢你才对,现在还有一个问题就是使用 sendReport.py 进行日报、周报、月报操作时,出现以下提示:
用户张三 开启日报 当前状态是正在实习 未找到 Error: 'content' 未找到 Error: 'content' 未找到 Error: 'content' 未找到 Error: 'content' 未找到 Error: 'content' 用户张三 开启周报 未找到 Error: 'content' 未找到 Error: 'content' 未找到 Error: 'content' 未找到 Error: 'content' 未找到 Error: 'content'
这个报错,应该是我写的读取当前岗位名称
没有读取到相应的岗位名称data['data']['bmlist'][0]['gwName']
可以在gptReport.py文件下 53行data = response.json()
替换为
data = response.json()
print(data)
添加后会回显信息
记得将个人信息处理一下反馈给我
例如
{
'code': 1001,
'deviceId': '',
'data': {
'bmcheck': False,
'bmcount': 2,
'bmmsg': '',
'bmlist': [{
'bmid': '000',
'jobid': '000',
'gwName': '信息安全员',
'companyName': '河南有限公司',
'gzdd': '河南',
'salary': '0 ',
'bmstatus': '正在实习',
'sdate': '',
'msgcolor': '#FFD700',
'next': 2
}, {
'bmid': '0000',
'jobid': '00000',
'gwName': '信息安全员',
'companyName': '河南有限公司',
'gzdd': '河南',
'salary': '0',
'bmstatus': '实习解约',
'sdate': '',
'msgcolor': '#4F9FE8',
'next': 0
}]
},
'msg': '',
'currentpage': 0,
'pagesize': 0,
'totalcount': 0,
'pagecount': 0
}
from zxjy_dk.
{'code': 1001, 'deviceId': '', 'data': {'bmcheck': False, 'bmcount': 1, 'bmmsg': '', 'bmlist': [{'bmid': '1459306', 'jobid': '1451161', 'gwName': '测量员', 'companyName': '郑州本初装饰工程有限公司', 'gzdd': '河南省郑州市金水区鑫苑金融广场', 'salary': '2k-3k', 'bmstatus': '正在实习', 'sdate': '', 'msgcolor': '#FFD700', 'next': 2}]}, 'msg': '', 'currentpage': 0, 'pagesize': 0, 'totalcount': 0, 'pagecount': 0}
from zxjy_dk.
{'code': 1001, 'deviceId': '', 'data': {'bmcheck': False, 'bmcount': 1, 'bmmsg': '', 'bmlist': [{'bmid': '1459306', 'jobid': '1451161', 'gwName': '测量员', 'companyName': '郑州本初装饰工程有限公司', 'gzdd': '河南省郑州市金水区鑫苑金融广场', 'salary': '2k-3k', 'bmstatus': '正在实习', 'sdate': '', 'msgcolor': '#FFD700', 'next': 2}]}, 'msg': '', 'currentpage': 0, 'pagesize': 0, 'totalcount': 0, 'pagecount': 0}
from zxjy_dk.
{'code': 1001, 'deviceId': '', 'data': {'bmcheck': False, 'bmcount': 1, 'bmmsg': '', 'bmlist': [{'bmid': '1459306', 'jobid': '1451161', 'gwName': '测量员', 'companyName': '郑州本初装饰工程有限公司', 'gzdd': '河南省郑州市金水区鑫苑金融广场', 'salary': '2k-3k', 'bmstatus': '正在实习', 'sdate': '', 'msgcolor': '#FFD700', 'next': 2}]}, 'msg': '', 'currentpage': 0, 'pagesize': 0, 'totalcount': 0, 'pagecount': 0}
后面可以还是报错吗
from zxjy_dk.
用户张三 开启日报 {
'code': 1001,
'deviceId': '',
'data': {
'bmcheck': False,
'bmcount': 1,
'bmmsg': '',
'bmlist': [{
'bmid': '1459306',
'jobid': '1451161',
'gwName': '测量员',
'companyName': '郑州本初装饰工程有限公司',
'gzdd': '河南省郑州市金水区鑫苑金融广场',
'salary': '2k-3k',
'bmstatus': '正在实习',
'sdate': '',
'msgcolor': '#F当前状态是正在实习
未找到 Error: 'content'
未找到 Error: 'content'
未找到 Error: 'content'
未找到 Error: 'content'
未找到 Error: 'content'
用户张三 开启周报
未找到 Error: 'content'
未找到 Error: 'content'
未找到 Error: 'content'
未找到 Error: 'content'
未找到 Error: 'content'
from zxjy_dk.
python中的openai库版本
错误可以尝试使用
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ openai==0.28.0
升级为0.28.0版本
from zxjy_dk.
大佬你好,error的报错升级openai版本后已经解决,也可以进行日报/周报操作。
以下是我对sendReport.py程序的一点儿建议
1.建议给不同的用户设置日报开关,因为有的专业是不用交日报的。
2.增加日报(也可以是周报/月报)自定义日期选项,例如(日报起始日期9.3,日报终止日期10.11,每篇日报间最好有1-2分钟的间隔)。
3.设置打卡自由化,即可以单独使用日报程序,而不执行打卡。
以上意见仅供参考。
大佬可否发个收款码?你的项目对我帮助很大,想请你喝杯奶茶。
from zxjy_dk.
1、新版本已经加入此功能重新拉取代码即可
2、这个功能等后面我在考虑下周要去出差比较忙没有时间弄
3、新版本已经加入
最后暂时不考虑
from zxjy_dk.
Related Issues (20)
- version.py 中的 AdaptedVersion 的值没有更新 HOT 2
- [BUG] 周报开始时间计算逻辑错误 HOT 1
- 安卓打卡 HOT 1
- 版本匹配 HOT 2
- 作者大大,今天测试显示要去更新代码,可是这个库还没更新 HOT 1
- 版本获取 HOT 1
- 职校家园更新问题反馈 HOT 3
- 职校家园更新 HOT 9
- 压缩包新解压 出来 不添加数据 直接运行main.py 有第一次保存的数据 之前的文件夹删了都不行 HOT 1
- 运行多用户打卡 只运行20个就闪退了 HOT 3
- 日报系统ChatGPT中缺少键 HOT 6
- [SUGGESTION] 优化 ChatGPT 生成实习报告的提示词 HOT 1
- 异地流量打卡可不可行,因为我是本地服务器,在家放着,我这边实习地在广东,这样不会打卡异常吧,感谢大佬 HOT 3
- get_apitoken函数请求失败,返回错误数据 HOT 5
- 代码细节问题 HOT 2
- 大哥放宝塔可以用吗? HOT 10
- chatgpt中缺少健怎么解决作者大大 HOT 1
- 大哥我这本机运行不起来是因为啥原因 HOT 2
- 老哥,能留个邮箱地址不,想请教你一下,滑块验证 HOT 3
- 运行sendReport.py文件报错 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zxjy_dk.