Skip to content
Permalink
Browse files

API: Person message: added Index field.

  • Loading branch information...
sagotch committed Aug 7, 2019
1 parent c3e7963 commit e46d917c620f426b079778e4319b0ebedaf912f6
Showing with 4 additions and 0 deletions.
  1. +1 −0 lib/api.proto
  2. +3 −0 lib/api_util.ml
@@ -135,6 +135,7 @@ message Person {
required bool descend = 21;
required bool visible_for_visitors = 22;
required string baseprefix = 23;
required int32 index = 24;
}

message FullPerson {
@@ -727,6 +727,7 @@ let empty_piqi_person_light conf ref_person base_loop =
n = sn;
p = fn;
oc = occ;
index = Int32.of_string @@ Gwdb.string_of_iper Gwdb.dummy_iper;
sex = `unknown;
lastname = "";
firstname = "";
@@ -1126,11 +1127,13 @@ let pers_to_piqi_person_light conf base p base_loop compute_sosa load_img =
let baseprefix = conf.command
in
let visible = is_visible conf base p in
let index = Int32.of_string @@ Gwdb.string_of_iper gen_p.key_index in
{
M.Person.sosa = sosa_p;
n = sn;
p = fn;
oc = occ;
index;
sex = sex;
lastname = surname;
firstname = first_name;

0 comments on commit e46d917

Please sign in to comment.
You can’t perform that action at this time.