{"action":"created","issue":{"url":"https://api.github.com/repos/fsxfreak/club-suite/issues/228","repository_url":"https://api.github.com/repos/fsxfreak/club-suite","labels_url":"https://api.github.com/repos/fsxfreak/club-suite/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/fsxfreak/club-suite/issues/228/comments","events_url":"https://api.github.com/repos/fsxfreak/club-suite/issues/228/events","html_url":"https://github.com/fsxfreak/club-suite/issues/228","id":213183863,"number":228,"title":"[FRONTEND] /[BACKEND] add revenue column to budgets","user":{"login":"Jcjacky","id":22564487,"avatar_url":"https://avatars3.githubusercontent.com/u/22564487?v=3","gravatar_id":"","url":"https://api.github.com/users/Jcjacky","html_url":"https://github.com/Jcjacky","followers_url":"https://api.github.com/users/Jcjacky/followers","following_url":"https://api.github.com/users/Jcjacky/following{/other_user}","gists_url":"https://api.github.com/users/Jcjacky/gists{/gist_id}","starred_url":"https://api.github.com/users/Jcjacky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jcjacky/subscriptions","organizations_url":"https://api.github.com/users/Jcjacky/orgs","repos_url":"https://api.github.com/users/Jcjacky/repos","events_url":"https://api.github.com/users/Jcjacky/events{/privacy}","received_events_url":"https://api.github.com/users/Jcjacky/received_events","type":"User","site_admin":false},"labels":[{"id":525383414,"url":"https://api.github.com/repos/fsxfreak/club-suite/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":{"login":"fsxfreak","id":1409519,"avatar_url":"https://avatars2.githubusercontent.com/u/1409519?v=3","gravatar_id":"","url":"https://api.github.com/users/fsxfreak","html_url":"https://github.com/fsxfreak","followers_url":"https://api.github.com/users/fsxfreak/followers","following_url":"https://api.github.com/users/fsxfreak/following{/other_user}","gists_url":"https://api.github.com/users/fsxfreak/gists{/gist_id}","starred_url":"https://api.github.com/users/fsxfreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsxfreak/subscriptions","organizations_url":"https://api.github.com/users/fsxfreak/orgs","repos_url":"https://api.github.com/users/fsxfreak/repos","events_url":"https://api.github.com/users/fsxfreak/events{/privacy}","received_events_url":"https://api.github.com/users/fsxfreak/received_events","type":"User","site_admin":false},"assignees":[{"login":"fsxfreak","id":1409519,"avatar_url":"https://avatars2.githubusercontent.com/u/1409519?v=3","gravatar_id":"","url":"https://api.github.com/users/fsxfreak","html_url":"https://github.com/fsxfreak","followers_url":"https://api.github.com/users/fsxfreak/followers","following_url":"https://api.github.com/users/fsxfreak/following{/other_user}","gists_url":"https://api.github.com/users/fsxfreak/gists{/gist_id}","starred_url":"https://api.github.com/users/fsxfreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsxfreak/subscriptions","organizations_url":"https://api.github.com/users/fsxfreak/orgs","repos_url":"https://api.github.com/users/fsxfreak/repos","events_url":"https://api.github.com/users/fsxfreak/events{/privacy}","received_events_url":"https://api.github.com/users/fsxfreak/received_events","type":"User","site_admin":false},{"login":"AftermathK","id":17772711,"avatar_url":"https://avatars1.githubusercontent.com/u/17772711?v=3","gravatar_id":"","url":"https://api.github.com/users/AftermathK","html_url":"https://github.com/AftermathK","followers_url":"https://api.github.com/users/AftermathK/followers","following_url":"https://api.github.com/users/AftermathK/following{/other_user}","gists_url":"https://api.github.com/users/AftermathK/gists{/gist_id}","starred_url":"https://api.github.com/users/AftermathK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AftermathK/subscriptions","organizations_url":"https://api.github.com/users/AftermathK/orgs","repos_url":"https://api.github.com/users/AftermathK/repos","events_url":"https://api.github.com/users/AftermathK/events{/privacy}","received_events_url":"https://api.github.com/users/AftermathK/received_events","type":"User","site_admin":false},{"login":"kevinzavier","id":19196558,"avatar_url":"https://avatars2.githubusercontent.com/u/19196558?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinzavier","html_url":"https://github.com/kevinzavier","followers_url":"https://api.github.com/users/kevinzavier/followers","following_url":"https://api.github.com/users/kevinzavier/following{/other_user}","gists_url":"https://api.github.com/users/kevinzavier/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinzavier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinzavier/subscriptions","organizations_url":"https://api.github.com/users/kevinzavier/orgs","repos_url":"https://api.github.com/users/kevinzavier/repos","events_url":"https://api.github.com/users/kevinzavier/events{/privacy}","received_events_url":"https://api.github.com/users/kevinzavier/received_events","type":"User","site_admin":false},{"login":"arangama","id":22433643,"avatar_url":"https://avatars1.githubusercontent.com/u/22433643?v=3","gravatar_id":"","url":"https://api.github.com/users/arangama","html_url":"https://github.com/arangama","followers_url":"https://api.github.com/users/arangama/followers","following_url":"https://api.github.com/users/arangama/following{/other_user}","gists_url":"https://api.github.com/users/arangama/gists{/gist_id}","starred_url":"https://api.github.com/users/arangama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arangama/subscriptions","organizations_url":"https://api.github.com/users/arangama/orgs","repos_url":"https://api.github.com/users/arangama/repos","events_url":"https://api.github.com/users/arangama/events{/privacy}","received_events_url":"https://api.github.com/users/arangama/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/fsxfreak/club-suite/milestones/4","html_url":"https://github.com/fsxfreak/club-suite/milestone/4","labels_url":"https://api.github.com/repos/fsxfreak/club-suite/milestones/4/labels","id":2344515,"number":4,"title":"final polish","description":"","creator":{"login":"fsxfreak","id":1409519,"avatar_url":"https://avatars2.githubusercontent.com/u/1409519?v=3","gravatar_id":"","url":"https://api.github.com/users/fsxfreak","html_url":"https://github.com/fsxfreak","followers_url":"https://api.github.com/users/fsxfreak/followers","following_url":"https://api.github.com/users/fsxfreak/following{/other_user}","gists_url":"https://api.github.com/users/fsxfreak/gists{/gist_id}","starred_url":"https://api.github.com/users/fsxfreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsxfreak/subscriptions","organizations_url":"https://api.github.com/users/fsxfreak/orgs","repos_url":"https://api.github.com/users/fsxfreak/repos","events_url":"https://api.github.com/users/fsxfreak/events{/privacy}","received_events_url":"https://api.github.com/users/fsxfreak/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":38,"state":"open","created_at":"2017-02-23T22:31:23Z","updated_at":"2017-03-10T01:42:42Z","due_on":"2017-03-14T07:00:00Z","closed_at":null},"comments":0,"created_at":"2017-03-09T22:21:46Z","updated_at":"2017-03-10T01:43:01Z","closed_at":"2017-03-10T01:42:42Z","body":"Right now, we in the table, we have Event Name and Event Cost. \r\n\r\nIt would be nice to also have a Event Revenue column and change the Event Cost numbers from Positive to Negative, so 50 is actually -50.\r\n\r\nIn view_events.py, this was used to calculate the event revenue:\r\n\r\n`\r\n# getting the revnue\r\n    eventSignIns = EventSignIn.objects.filter(eid=event_id, status=True)\r\n    totalCost = 0\r\n    i = 1\r\n    for eventSignIn in eventSignIns:\r\n        totalCost = i * eventSignIn.eid.event_fee\r\n        i+=1\r\n`\r\n\r\nInstead of the for loop, maybe this will work:\r\n`eventSignIns = EventSignIn.objects.filter(eid=event_id, status=True)\r\ntotalCost=len(eventSignIns)*eventSignIn.eid.event_fee`"},"comment":{"url":"https://api.github.com/repos/fsxfreak/club-suite/issues/comments/285548129","html_url":"https://github.com/fsxfreak/club-suite/issues/228#issuecomment-285548129","issue_url":"https://api.github.com/repos/fsxfreak/club-suite/issues/228","id":285548129,"user":{"login":"fsxfreak","id":1409519,"avatar_url":"https://avatars2.githubusercontent.com/u/1409519?v=3","gravatar_id":"","url":"https://api.github.com/users/fsxfreak","html_url":"https://github.com/fsxfreak","followers_url":"https://api.github.com/users/fsxfreak/followers","following_url":"https://api.github.com/users/fsxfreak/following{/other_user}","gists_url":"https://api.github.com/users/fsxfreak/gists{/gist_id}","starred_url":"https://api.github.com/users/fsxfreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsxfreak/subscriptions","organizations_url":"https://api.github.com/users/fsxfreak/orgs","repos_url":"https://api.github.com/users/fsxfreak/repos","events_url":"https://api.github.com/users/fsxfreak/events{/privacy}","received_events_url":"https://api.github.com/users/fsxfreak/received_events","type":"User","site_admin":false},"created_at":"2017-03-10T01:43:01Z","updated_at":"2017-03-10T01:43:01Z","body":"fixed the code, won't add anything to the event model. it's too late"}}
{"actor":{"display_login":"fsxfreak"}}