Skip to content

Commit

Permalink
Fix compatibility with python webapp
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Aug 7, 2024
1 parent 6e41467 commit 1623bca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion repology_webapp/src/views/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ pub struct ApiV1Package {
pub visiblename: String,

pub version: String,
#[serde(skip_serializing_if = "Option::is_none")]
//#[serde(skip_serializing_if = "Option::is_none")] // Note: this is commented
// for bug-to-bug compatibility with python webapp
pub origversion: Option<String>,

pub status: PackageStatus,
Expand Down

0 comments on commit 1623bca

Please sign in to comment.