Skip to content

Commit

Permalink
replace _id with id
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jun 8, 2024
1 parent 706d321 commit 32f4447
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion train-rank/src/entity/entry.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <string>
#include <vector>

static const char ENTRY_ID[] = "_id";
static const char ENTRY_ID[] = "id";
static const char ENTRY_FILE_TYPE[] = "file_type";
static const char ENTRY_READ_LATER[] = "readlater";
static const char ENTRY_CRAWLER[] = "crawler";
Expand Down
2 changes: 1 addition & 1 deletion train-rank/src/entity/impression.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ static const char IMPRESSION_MONGO_FIELD_BATCH_ID[] = "batch_id";
static const char IMPRESSION_MONGO_FIELD_POSITION[] = "position";
static const char IMPRESSION_MONGO_FIELD_READ_TIME[] = "read_time";
static const char IMPRESSION_MONGO_FIELD_READ_FINISH[] = "read_finish";
static const char IMPRESSION_MONGO_FIELD_ID[] = "_id";
static const char IMPRESSION_MONGO_FIELD_ID[] = "id";
static const char IMPRESSION_MONGO_FIELD_ENTRY_ID[] = "entry_id";
static const char IMPRESSION_MONGO_FIELD_CLICKED[] = "clicked";
static const char IMPRESSION_MONGO_FIELD_ALGORITHM_EXTRA[] = "algorithm_extra";
Expand Down
2 changes: 1 addition & 1 deletion train-rank/src/entity/rank_algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <vector>
#include <optional>

static const char ALGORITHM_MONGO_FIELD_ID[] = "_id";
static const char ALGORITHM_MONGO_FIELD_ID[] = "id";
static const char ALGORITHM_MONGO_FIELD_ENTRY[] = "entry";
static const char ALGORITHM_MONGO_FIELD_SOURCE[] = "source";
static const char ALGORITHM_MONGO_FIELD_SCORE[] = "score";
Expand Down

0 comments on commit 32f4447

Please sign in to comment.