Skip to content

Commit

Permalink
Merge pull request #32 from golnazads/master
Browse files Browse the repository at this point in the history
revert back to aff and if no aff in data init to dash
  • Loading branch information
golnazads authored Jan 17, 2020
2 parents 4e81bb8 + 98c6651 commit dae0038
Show file tree
Hide file tree
Showing 5 changed files with 316 additions and 376 deletions.
3 changes: 2 additions & 1 deletion authoraffsrv/tests/unittests/stubdata/formatted.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
data = {"data": [{"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Accomazzi, A."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Akeson, R."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Berriman, G. B."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Desai, V."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Groom, S."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Helou, G."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Imel, D."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Mazzarella, J. M."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "McGlynn, T."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Rebull, L. M."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Smale, A."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Teplitz, H."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "White, R."}]}
data = {"data": [{"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Accomazzi, A."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Akeson, R."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Berriman, G. B."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Desai, V."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Groom, S."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Helou, G."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Imel, D."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Mazzarella, J. M."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "McGlynn, T."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Rebull, L. M."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Smale, A."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "Teplitz, H."}, {"affiliations": {"lastActiveDate": "2017/09", "name": "-", "years": ["2017"]}, "authorName": "White, R."}]}
data2 = {'data': [{'affiliations': {'lastActiveDate': '2016/07', 'name': 'Smithsonian Astrophysical Observatory (United States)', 'years': ['2016']}, 'authorName': 'Accomazzi, Alberto'}, {'affiliations': {'lastActiveDate': '2016/01', 'name': '-', 'years': ['2016']}, 'authorName': 'Accomazzi, Alberto'}, {'affiliations': {'lastActiveDate': '2016/07', 'name': 'Space Telescope Science Institute (United States)', 'years': ['2016']}, 'authorName': 'Aloisi, Alessandra'}, {'affiliations': {'lastActiveDate': '2016/07', 'name': 'Infrared Processing and Analysis Ctr. (United States)', 'years': ['2016']}, 'authorName': 'Berriman, Graham B.'}, {'affiliations': {'lastActiveDate': '2016/01', 'name': '-', 'years': ['2016']}, 'authorName': 'Chyla, Roman'}, {'affiliations': {'lastActiveDate': '2016/07', 'name': 'Infrared Processing and Analysis Ctr. (United States)', 'years': ['2016']}, 'authorName': 'Desai, Vandana R.'}, {'affiliations': {'lastActiveDate': '2016/07', 'name': 'Space Telescope Science Institute (United States)', 'years': ['2016']}, 'authorName': 'Donaldson, Thomas'}, {'affiliations': {'lastActiveDate': '2016/07', 'name': 'Space Telescope Science Institute (United States)', 'years': ['2016']}, 'authorName': 'Dower, Theresa'}, {'affiliations': {'lastActiveDate': '2016/07', 'name': 'Infrared Processing and Analysis Ctr. (United States)', 'years': ['2016']}, 'authorName': 'Ebert, Rick'}, {'affiliations': {'lastActiveDate': '2016/01', 'name': '-', 'years': ['2016']}, 'authorName': 'Elliott, Jonathan'}, {'affiliations': {'lastActiveDate': '2016/07', 'name': 'Smithsonian Astrophysical Observatory (United States)', 'years': ['2016']}, 'authorName': 'Fabbiano, Giuseppina'}, {'affiliations': {'lastActiveDate': '2016/01', 'name': '-', 'years': ['2016']}, 'authorName': 'Grant, Carolyn S.'}, {'affiliations': {'lastActiveDate': '2016/07', 'name': 'Infrared Processing and Analysis Ctr. (United States)', 'years': ['2016']}, 'authorName': 'Groom, Steve L.'}, {'affiliations': {'lastActiveDate': '2016/01', 'name': '-', 'years': ['2016']}, 'authorName': 'Henneken, Edwin A.'}, {'affiliations': {'lastActiveDate': '2016/01', 'name': '-', 'years': ['2016']}, 'authorName': 'Holachek, Alexandra'}, {'affiliations': {'lastActiveDate': '2016/07', 'name': 'Infrared Processing and Analysis Ctr. (United States)', 'years': ['2016']}, 'authorName': 'Imel, David'}, {'affiliations': {'lastActiveDate': '2016/01', 'name': '-', 'years': ['2016']}, 'authorName': 'Kurtz, Michael J.'}, {'affiliations': {'lastActiveDate': '2016/07', 'name': 'Infrared Processing and Analysis Ctr. (United States)', 'years': ['2016']}, 'authorName': 'Landry, Walter'}, {'affiliations': {'lastActiveDate': '2016/07', 'name': 'Infrared Processing and Analysis Ctr. (United States)', 'years': ['2016']}, 'authorName': 'Mazzerella, Joseph M.'}, {'affiliations': {'lastActiveDate': '2016/07', 'name': 'NASA Goddard Space Flight Ctr. (United States)', 'years': ['2016']}, 'authorName': 'McGlynn, Thomas'}, {'affiliations': {'lastActiveDate': '2016/07', 'name': 'Infrared Processing and Analysis Ctr. (United States)', 'years': ['2016']}, 'authorName': 'Pevunova, Olga'}, {'affiliations': {'lastActiveDate': '2016/07', 'name': 'NASA Goddard Space Flight Ctr. (United States)', 'years': ['2016']}, 'authorName': 'Smale, Alan'}, {'affiliations': {'lastActiveDate': '2016/07', 'name': 'Infrared Processing and Analysis Ctr. (United States)', 'years': ['2016']}, 'authorName': 'Teplitz, Harry I.'}, {'affiliations': {'lastActiveDate': '2016/01', 'name': '-', 'years': ['2016']}, 'authorName': 'Thompson, Donna M.'}, {'affiliations': {'lastActiveDate': '2016/07', 'name': 'Space Telescope Science Institute (United States)', 'years': ['2016']}, 'authorName': 'White, Richard L.'}]}
Loading

0 comments on commit dae0038

Please sign in to comment.