Fixed Format
This commit is contained in:
parent
54d0c52244
commit
e201630a9a
5 changed files with 6 additions and 7 deletions
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
@ -10,7 +10,6 @@ env:
|
|||
DOCKER_REGISTRY: r.regnault.dev
|
||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
PORTAINER_API_KEY: ${{ secrets.PORTAINER_API_KEY }}
|
||||
PORTAINER_API_WEBHOOK: ${{ secrets.PORTAINER_API_WEBHOOK }}
|
||||
|
||||
jobs:
|
||||
|
@ -55,7 +54,6 @@ jobs:
|
|||
- name: Deploy to production
|
||||
uses: fjogeleit/http-request-action@v1.14.1
|
||||
with:
|
||||
url: ${{ env.PORTAINER_API_WEBHOOK }}
|
||||
url: ${{ format('{0}?tag={1}',env.PORTAINER_API_WEBHOOK, env.VERSION) }}
|
||||
method: 'POST'
|
||||
customHeaders: ${{ env.PORTAINER_API_KEY }}
|
||||
preventFailureOnNoResponse: true
|
||||
|
|
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1390,7 +1390,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "obsessed-yanqing"
|
||||
version = "1.4.0"
|
||||
version = "1.4.3"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"levenshtein",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "obsessed-yanqing"
|
||||
version = "1.4.2"
|
||||
version = "1.4.3"
|
||||
edition = "2021"
|
||||
authors = ["Evann Regnault"]
|
||||
license = "MIT"
|
||||
|
|
|
@ -132,7 +132,8 @@ fn get_date(date_string: &str) -> Option<String> {
|
|||
fn get_time(event: Node) -> EventTime {
|
||||
event.find(Class("duration")).next().map(|x| {
|
||||
let text = x.text();
|
||||
let dates = Regex::new(r" [-–] ").expect("Can't create split time regex").split(text.as_str()).collect::<Vec<&str>>();
|
||||
let dates = Regex::new(r"[-—–]").expect("Can't create split time regex").split(text.as_str()).collect::<Vec<&str>>();
|
||||
println!("{:?}", dates);
|
||||
let start_date_text = dates.first().expect("Cannot get start date string").to_owned();
|
||||
let end_date_text = dates.get(1).expect("Cannot get end date string").to_owned();
|
||||
let start = get_date(start_date_text).map(|x| {
|
||||
|
|
|
@ -29,7 +29,7 @@ pub struct Character {
|
|||
pub full_image: FullImage,
|
||||
pub description: Option<Description>,
|
||||
pub default_role: String,
|
||||
pub affiliation: String,
|
||||
pub affiliation: Option<String>,
|
||||
pub rarity: String,
|
||||
pub element: String,
|
||||
pub path: String,
|
||||
|
|
Loading…
Reference in a new issue