# Previous disagreeing ID erroneously overturned

**URL:** <https://forum.inaturalist.org/t/previous-disagreeing-id-erroneously-overturned/18183>\
**Category:** Bug Reports\
**Created:** [November 19, 2020, 10:50pm UTC](https://forum.inaturalist.org/t/previous-disagreeing-id-erroneously-overturned/18183 "2020-11-19T22:50:16Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![pisum](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pisum](https://forum.inaturalist.org/u/pisum)\
**Post date:** [February 27, 2024, 11:16pm UTC](https://forum.inaturalist.org/t/previous-disagreeing-id-erroneously-overturned/18183/23 "2024-02-27T23:16:28Z")

</div>

> [@kharkovbut](#):
>
> Any clue how to create such database requests?

yes. i adapted a [Jupyter notebook that i’ve been working on](https://forum.inaturalist.org/t/whats-the-best-way-to-share-python-code-nowadays/48554), with the following changes:

1. uncomment (remove the leading `#` from the) lines that begin with:
  - `{'label': 'ident_taxa_vs_prev_ancestor'` (allows you to find identifications that were an ancestor to the observation taxon at the time of ID)
  - `{'ref': 'place_ids'}` (allows you to get standard place names)

2. modify the following lines:
  - `req_params_string = 'spam=false&taxon_id=58573&ident_taxon_id=54068&created_d2=2023-03-10'` (look for taxon Bolonia, with an identification of B. selene, created before the change date)
  - `obs = await get_obs(req_params, get_all_pages=True, use_authorization=False, post_parse_filter_function=(lambda x: x['ident_taxa_vs_prev_ancestor'] > 0))` (get all records, applying a client-side filter for identifications which were ancestors to the obs taxon at the time of ID)

3. run

---

_[View the full topic](https://forum.inaturalist.org/t/previous-disagreeing-id-erroneously-overturned/18183)._
