Bug #169

wrong name nad id when citizen is general manger

Added by Anonymous 6 months ago. Updated 6 months ago.

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)

Updated by Ben W. 6 months ago

  • Assigned to changed from Radicand R. to Ben W.

Updated by Ben W. 6 months ago

  • Status changed from Unassigned to Assigned

Updated by Ben W. 6 months ago

  • Assigned to changed from Ben W. to Ben Hai
  • % Done changed from 0 to 100

fixed in commit 11

Updated by Goran Balasko 6 months ago

  • Status changed from Assigned to Closed

seems that ben solve this in the latest rev. (No. 11). I'll close this for now then

Also available in: Atom PDF