Bug #169
wrong name nad id when citizen is general manger
| Status: | Closed | Start: | 01/29/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | Ben Hai | % Done: | 100% |
|
| Category: | - | |||
| Target version: | - |
Description
[16:02:08] <&thebalash> .link akson
[16:02:10] <eRepublik> PlodoviZemlje - http://www.erepublik.com/en/citizen/profile/181138
Citizen Akson is general manager of company PlodoviZemlje so infoParser took name & id of a company instead of citizen
Solution to this bug:
in code section "infoParser":
line176: name = raw_data.getElementsByTagName('name')[0].toxml()[6:-7]
(...)
line184: idd = raw_data.getElementsByTagName('id')[0].toxml()[4:-5]
should change into:
if bool(raw_data.getElementsByTagName('is-general-manager')[0].toxml()[20:-21]):
name=raw_data.getElementsByTagName('name')[1].toxml()[6:-7]
idd=raw_data.getElementsByTagName('id')[1].toxml()[4:-5]
Hope I helped
citizen thebalash
History
Updated by Radicand R. 6 months ago
- Project changed from Rizon Python Services to eRepublik Bot
- Category deleted (
Modules)